home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / ArrowBGP.h.z / ArrowBGP.h
C/C++ Source or Header  |  2002-10-15  |  4KB  |  148 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /*   $XConsortium: ArrowBGP.h /main/13 1995/07/14 10:09:51 drk $ */
  12. /*
  13. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  14. #ifndef _XmArrowGadgetP_h
  15. #define _XmArrowGadgetP_h
  16.  
  17. #include <Xm/ArrowBG.h>
  18. #include <Xm/GadgetP.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. /*  Arrow class structure  */
  25.  
  26. typedef struct _XmArrowButtonGadgetClassPart
  27. {
  28.    XtPointer extension;
  29. #ifdef _SGIMOTIF
  30.     XtPointer _SG_vendorExtension;
  31. #endif /* _SGIMOTIF */    
  32. } XmArrowButtonGadgetClassPart;
  33.  
  34.  
  35. /*  Full class record declaration for Arrow class  */
  36.  
  37. typedef struct _XmArrowButtonGadgetClassRec
  38. {
  39.   RectObjClassPart             rect_class;
  40.   XmGadgetClassPart            gadget_class;
  41.   XmArrowButtonGadgetClassPart arrow_button_class;
  42. } XmArrowButtonGadgetClassRec;
  43.  
  44. externalref XmArrowButtonGadgetClassRec xmArrowButtonGadgetClassRec;
  45.  
  46. /*  The Arrow instance record  */
  47.  
  48. typedef struct _XmArrowButtonGadgetPart
  49. {
  50.   XtCallbackList activate_callback;
  51.   XtCallbackList arm_callback;
  52.   XtCallbackList disarm_callback;
  53.   unsigned char  direction;    /* The direction the arrow is pointing. */
  54.  
  55.   Boolean     selected;
  56.  
  57.   short         top_count;
  58.   short         cent_count;
  59.   short         bot_count;
  60.   XRectangle    *top;
  61.   XRectangle    *cent;
  62.   XRectangle    *bot;
  63.  
  64.   Position     old_x;
  65.   Position     old_y;
  66.  
  67.   GC         arrow_GC;
  68.   XtIntervalId     timer;    
  69.   unsigned char     multiClick;    /* KEEP/DISCARD resource */
  70.   int         click_count;
  71.   GC         insensitive_GC;
  72.  
  73.    
  74.   GC         background_GC;
  75.   GC         top_shadow_GC;
  76.   GC         bottom_shadow_GC;
  77.   GC         highlight_GC;
  78.    
  79.   Pixel         foreground;
  80.   Pixel         background;
  81.    
  82.   Pixel         top_shadow_color;
  83.   Pixmap     top_shadow_pixmap;
  84.    
  85.   Pixel         bottom_shadow_color;
  86.   Pixmap     bottom_shadow_pixmap;
  87.    
  88.   Pixel         highlight_color;
  89.   Pixmap     highlight_pixmap;
  90.  
  91.   Boolean     fill_bg_box;
  92.   Dimension detail_shadow_thickness ;
  93. #ifdef _SGIMOTIF
  94.     XtPointer _SG_vendorExtension;
  95. #endif /* _SGIMOTIF */      
  96. } XmArrowButtonGadgetPart;
  97.  
  98.  
  99. /*  Full instance record declaration  */
  100.  
  101. typedef struct _XmArrowButtonGadgetRec
  102. {
  103.    ObjectPart              object;
  104.    RectObjPart             rectangle;
  105.    XmGadgetPart            gadget;
  106.    XmArrowButtonGadgetPart arrowbutton;
  107. } XmArrowButtonGadgetRec;
  108.  
  109.  
  110.  
  111. #define ArrowBG_BackgroundGC(w)        (((XmArrowButtonGadget)(w)) -> \
  112.                                            arrowbutton. background_GC)
  113. #define ArrowBG_TopShadowGC(w)        (((XmArrowButtonGadget)(w)) -> \
  114.                                            arrowbutton. top_shadow_GC)
  115. #define ArrowBG_BottomShadowGC(w)    (((XmArrowButtonGadget)(w)) -> \
  116.                                            arrowbutton. bottom_shadow_GC)
  117. #define ArrowBG_HighlightGC(w)        (((XmArrowButtonGadget)(w)) -> \
  118.                                            arrowbutton. highlight_GC)
  119. #define ArrowBG_Foreground(w)        (((XmArrowButtonGadget)(w)) -> \
  120.                                            arrowbutton. foreground)
  121. #define ArrowBG_Background(w)        (((XmArrowButtonGadget)(w)) -> \
  122.                                            arrowbutton. background)
  123. #define ArrowBG_TopShadowColor(w)    (((XmArrowButtonGadget)(w)) -> \
  124.                                            arrowbutton. top_shadow_color)
  125. #define ArrowBG_TopShadowPixmap(w)    (((XmArrowButtonGadget)(w)) -> \
  126.                                            arrowbutton. top_shadow_pixmap)
  127. #define ArrowBG_BottomShadowColor(w)    (((XmArrowButtonGadget)(w)) -> \
  128.                                            arrowbutton. bottom_shadow_color)
  129. #define ArrowBG_BottomShadowPixmap(w)    (((XmArrowButtonGadget)(w)) -> \
  130.                                            arrowbutton. bottom_shadow_pixmap)
  131. #define ArrowBG_HighlightColor(w)    (((XmArrowButtonGadget)(w)) -> \
  132.                                            arrowbutton. highlight_color)
  133. #define ArrowBG_HighlightPixmap(w)    (((XmArrowButtonGadget)(w)) -> \
  134.                                            arrowbutton. highlight_pixmap)
  135.  
  136. /********    Private Function Declarations    ********/
  137.  
  138.  
  139. /********    End Private Function Declarations    ********/
  140.  
  141.  
  142. #ifdef __cplusplus
  143. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  144. #endif
  145.  
  146. #endif /* _XmArrowGadgetP_h */
  147. /* DON'T ADD ANYTHING AFTER THIS #endif */
  148.